package com.share.shareplatform.sharereward.service;

import com.share.shareplatform.pojo.Reward;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RewardService {
    Long addOne(Reward reward);

    Integer updateBaseOne(Reward reward);

    Integer deleteAllByIds(List<Long> ids);

    Reward findOneById(Long id);
    List<Reward> findPage(Integer pageIndex, Integer pageSize);//分页查询

    List<Reward> findAllByIds(List<Long> ids);
    List<Reward> findAllByUserId(Long id);
    List<Reward> findAll();
    List<Reward> findAllByDistance(Reward reward);
}
